/**
 * FileSystemStore - a store on a filesystem
 *
 * @author Scot McSweeney-Roberts
 * @version 0.1
 *
 */

package uk.co.sheitgeist.fums.server.content.store.filesystem;

import uk.co.sheitgeist.fums.server.content.store.*;
import java.util.logging.Logger;

class FileSystemStore implements Store {

	private static Logger logger = Logger.getLogger("uk.co.sheitgeist")

	public File root

	public FileSystemStore(File root) {
		this.root = root
	}

	public String getRootId() {
		return "/"
	}
	public StoreNode getObjectById(String nodeId) {
		if (nodeId == this.rootId) {			
			return new FileSystemStoreNode(root)
		} else {
			return new FileSystemStoreNode(new File(nodeId))
		}
	}

}
